<%--
  Created by IntelliJ IDEA.
  User: wjl
  Date: 2022/12/20
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

总记录数：${myPageInfo.total},总页数：${myPageInfo.pageTotal}&nbsp;&nbsp;
<select id="select_PageSize" onchange="goto(1)">
    <option value="10" <c:if test="${myPageInfo.pageSize==10}">selected</c:if> >10</option>
    <option value="20" <c:if test="${myPageInfo.pageSize==20}">selected</c:if> >20</option>
    <option value="30" <c:if test="${myPageInfo.pageSize==30}">selected</c:if> >30</option>
</select>
<div class="text-right">
    <nav class="d-inline-block">

        <ul class="pagination mb-0 ">
            <li class="page-item  <c:if test="${myPageInfo.pageNum==1}">disabled</c:if> ">
                <a class="page-link" onclick="goto(${myPageInfo.pageNum-1})" href="javascript:void(0);" tabindex="-1"><i class="fas fa-chevron-left"></i></a>
            </li>
            <c:forEach  begin="1"  end="${myPageInfo.pageTotal}" var="num">
                <li class="page-item  <c:if test="${myPageInfo.pageNum==num}">active</c:if>  ">
                    <a class="page-link " onclick="goto(${num})" href="javascript:void(0); ">${num}</a></li>
            </c:forEach>
            <li class="page-item <c:if test="${myPageInfo.pageNum==myPageInfo.pageTotal}">disabled</c:if>  ">
                <a class="page-link " onclick="goto(${myPageInfo.pageNum+1})" href="javascript:void(0); "><i class="fas fa-chevron-right "></i></a>
            </li>
        </ul>
    </nav>
</div>